package com.kxy.auth.web;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
@EnableRedisHttpSession
@ComponentScan(basePackages={"com.kxy.auth.*"})
public class ClassApplication {
	
	/**
	 * 使用 BCryptPasswordEncoder 方法进行加密
	 * @return
	 */
	 @Bean
	public BCryptPasswordEncoder bCryptPasswordEncoder() {
		return new BCryptPasswordEncoder();
	}
	
	 public static void main(String[] args) {  
		 SpringApplication.run(ClassApplication.class,args);  
	 }  
	 
	 

}
